const add = function (record, that) {
    console.log('post action')
    return that.Atm.postAction(that.url.add, record)
}

const edit = function (record, that) {
    console.log('put action')
    return that.Atm.putAction(that.url.edit, record)
}

export default { add, edit };

const templateScopeColumn = [
    { title: 'id', align: "center", dataIndex: 'id' },
    { title: '模板域名称', align: "center", dataIndex: 'name' },
    { title: '模板域描述', align: "center", dataIndex: 'note' },
    { title: '操作', scopedSlots: { customRender: 'action' } }
]

const templateMacroColumns = [
    { title: 'id', align: "center", dataIndex: 'id' },
    { title: '宏空间名称', align: "center", dataIndex: 'name' },
    { title: '宏空间描述', align: "center", dataIndex: 'note' },
    { title: '操作', scopedSlots: { customRender: 'action' } }
]

export { templateScopeColumn, templateMacroColumns }
